﻿using System;

namespace CoreTypes
{
   [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, Inherited = false, AllowMultiple = false)]
   public sealed class DataContractAttribute : Attribute
   {
      public string Name { get; set; }

      public string Namespace { get; set; }
   }

   [AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
   public sealed class DataMemberAttribute : Attribute
   {
      public bool IsRequired { get; set; }
   }
}